using UnityEngine;

namespace NodeCanvas
{
	[AddComponentMenu("")]
	[ExecuteInEditMode]
	public class NodesRootUtility : MonoBehaviour
	{
		[SerializeField]
		private Graph _parentGraph;

		public Graph parentGraph
		{
			get
			{
				return _parentGraph;
			}
			set
			{
				_parentGraph = value;
			}
		}

		private void OnEnable()
		{
			base.gameObject.hideFlags = (Graph.doHide ? HideFlags.HideInHierarchy : HideFlags.None);
		}
	}
}
